package com.kj.misc.domain;

import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import com.google.common.collect.Lists;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
@NoArgsConstructor
public class MiscFpaConfig {
	
	@XmlAttribute
	@Getter @Setter
	private String prefix = "FPA";
	
	
    @XmlElement(name="entries")
	@Getter @Setter
	private List<FpaEntry> entries = Lists.newArrayList();
	
	
	@XmlAccessorType(XmlAccessType.FIELD)
	@XmlRootElement
	@NoArgsConstructor
	public static class FpaEntry {
		
		@XmlAttribute
		@Getter @Setter
		private String name = "Fpa" + System.currentTimeMillis();
		
		@XmlAttribute
		@Getter @Setter
		private String fpaKey = "";
		
		@XmlAttribute
		@Getter @Setter
		private int fpaCount = 10;
		
		
	}
	

}
